<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/webApp/head.jsp" %>
<script type="text/javascript">
function login(){

$('#login').form('submit',{
	url : '/shoeHouse/home/loginVali',
	dataType : 'json',
	success : function(result) {
		var json = $.parseJSON(result);
		if (json.success == 0) {
			 $.messager.progress({
                 text : "登录成功,正在跳转到系统主界面"
            });
			window.location.href = "/shoeHouse/home/main";
		} else if (json.success == 1) {
			alert("提示"+ json.msg);
		} else { 
			/* getTip("提示",json.msg,700); */
	          alert("提示"+json.msg);
		
		}
	}
});
}
</script>
<body>
   <header data-am-widget="header" class="am-header am-header-default joan-head2 ">
       <div class="am-header-left am-header-nav">
        <a href="javascript:history.back()" class="">
            <i class="am-icon-chevron-left"></i>
        </a>
        </div>
    
        <h1 class="am-header-title">
            <a href="#title-link" class="">登录</a>
        </h1>
    
        <div class="am-header-right am-header-nav">
            
           <a href="/shoeHouse/home/main" class="">
                <i class="am-header-icon am-icon-home"></i>
            </a>
        </div>
  </header>

 


 
 
<div class="login">
        <form method="post" action="" id="login">
            <ul class="login-ul">
                <li class="login-li">
                 
                    <input name="username" placeholder="手机" class="login-input-phone" type="tel">
                    <i class="am-icon-user"></i>
                 
                </li>
                <li class="login-li">
                 
                    <input name="password" placeholder="密码" class="login-input-password" type="password">
                 	<i class="am-icon-unlock-alt"></i>
                </li>
            </ul>
        </form>
        
        
        <div class="login-btn">
        	<a href="javascript:void(0)" class="am-btn am-btn-warning am-round mb20" onclick="login()">登陆</a>
        	<a href="/shoeHouse/home/registeredPage" class="am-btn am-btn-default am-round login-other-btn">注册</a>
        </div>
         


 </div>
   
  
  
   

 
  
   	
     



</body>
</html>
